package com.yb.guigu.pick.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-06-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_route")
@ApiModel(value = "SysRoute对象", description = "")
public class SysRoute {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(" 名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("菜单标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("描述信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("前端路由路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("前端组件路径")
    @TableField("component")
    private String component;

    @ApiModelProperty("是否是菜单0 不是菜单不会显示，1 是菜单会显示")
    @TableField("is_menu")
    private Integer isMenu;

    @ApiModelProperty("图标名称")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("图标名称")
    @TableField("redirect")
    private String redirect;

    @ApiModelProperty("元数据信息，json格式")
    @TableField("meta")
    private String meta;

    @ApiModelProperty("排序字段")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("层级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("是否需要认证，0不需要认证，1需要认证")
    @TableField("is_auth")
    private Integer isAuth;

    @ApiModelProperty("是否是叶子节点，0不是，1是")
    @TableField("is_leaf")
    private Integer isLeaf;


    @ApiModelProperty("是否是菜单叶子节点，0不是，1是")
    @TableField("is_menu_leaf")
    private Integer isMenuLeaf;


    @ApiModelProperty("路由从根节点到当前节点的id路径")
    @TableField("route_id_path")
    private String routeIdPath;

    @ApiModelProperty("父菜单id，如果是顶级菜单则为0")
    @TableField("parent_id")
    private Integer parentId;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
